package com.hehe.mapper;

import com.hehe.entity.GoodsInfo;
import com.hehe.entity.GoodsInfo_Table;
import com.hehe.entity.OldLevel;

import java.util.List;

public interface GoodsInfoMapper extends Mapper<GoodsInfo>{
    int add_goods(GoodsInfo_Table goodsInfo_table);

    int del_goods(int goods_id);

    int update_goods(GoodsInfo_Table goodsInfo_table);

    int update_goods_admin(GoodsInfo_Table goodsInfo_table);

    int update_show_admin(int goods_id);

    GoodsInfo findOneById_goods(int goods_id);

    List<GoodsInfo> findAll_goods();

    List<GoodsInfo> findShow_goods();

    List<GoodsInfo> findType_goods(int typeid);

    List<GoodsInfo> findPublish_goods(int userid);

    //新旧程度
    List<OldLevel> findAllLevel();
}
